<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>数据绑定</title>
        <script type="text/javascript" src="../js/vue.js"></script>
    </head>

    <body>
        <div id="root">
            <span>单项数据绑定：</span>
            <input type="text" :value="name">
            <br>
            <br>
            <span>双向数据绑定：</span>
            <input type="text" v-model="name">

        </div>

        <script type="text/javascript">
            new Vue({
                el:root,
                data:{
                    name:'一心堂集团aaa'
                }
            })
        </script>
    </body>
</html>